package com.bw.app.func;

public class SplitAgeFunction {
    public String splitAge(Integer age) {
        if (age >= 18 && age <= 25) {
            return "18-25岁";
        } else if (age >= 26 && age <= 30) {
            return "26-30岁";
        } else if (age >= 31 && age <= 35) {
            return "31-35岁";
        } else if (age >= 36 && age <= 40) {
            return "36-40岁";
        } else if (age >= 41 && age <= 50) {
            return "41-50岁";
        } else if (age >= 50) {
            return "50岁以上";
        } else {
            return "未知";
        }
    }
}
